<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ page
	import="org.springframework.web.util.UrlPathHelper,com.neusoft.core.util.PCache"%>

<aside id="left-panel">
	<!-- User info -->
	<div class="login-info">
		<span style="text-align: left; line-height: 39px">${userName}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<c:if test="${roleId==9}">[角色：管理员]</c:if> <c:if test="${roleId==1}">[角色：信息员]</c:if>
		</span>
	</div>
	<!-- end user info -->
	<c:set var="uri"
		value="<%=new UrlPathHelper().getOriginatingRequestUri(request)%>" />
	<c:if test="${roleId==9}">
		<nav>
			<ul>
				<li class="${fn:contains(uri, '/backmenu/') ? 'active open' : ''}">
					<a href="#"> <i class="fa fa-lg fa-fw fa-sitemap"></i>
						<span class="menu-item-parent">导航菜单</span>
					</a>
					<ul style="${fn:contains(uri, '/backmenu/') ? 'display: block;' : ''}">
						<li class="${fn:contains(uri, '/backmenu/list') ? 'active' : ''}">
							<a href="${base}/backmenu/list">
								<span class="menu-item-parent">导航列表</span>
							</a>
						</li>
						<li class="${fn:contains(uri, '/backmenu/add') ? 'active' : ''}">
							<a href="${base}/backmenu/add">
								<span class="menu-item-parent">添加导航</span>
							</a>
						</li>
					</ul>
				</li>
				<li class="${fn:contains(uri, '/column/') ? 'active' : ''}">
					<a href="${base}/column/list">
						<i class="fa fa-lg fa-fw fa-copy"></i>
						<span class="menu-item-parent">内容管理</span>
					</a>
				</li>
				<li class="${fn:contains(uri, '/contenttype/') ? 'active' : ''}">
					<a href="${base}/contenttype/list">
						<i class="fa fa-lg fa-fw fa-th-large"></i>
						<span class="menu-item-parent">内容类型</span>
					</a>
				</li>
				<li class="${fn:contains(uri, '/template/') ? 'active open' : ''}">
					<a href="#"> <i class="fa fa-lg fa-fw fa-paste"></i> 
						<span class="menu-item-parent">模板管理</span>
					</a>
					<ul style="${fn:contains(uri, '/template/') ? 'display: block;' : ''}">
						<li class="${fn:contains(uri, '/template/builtin') ? 'active' : ''}">
							<a href="${base}/template/builtin">
								<i class="fa fa-lg fa-fw fa-file-text"></i> 内置模板管理
							</a>
						</li>
						<li class="${fn:contains(uri, '/template/custom') ? 'active' : ''}">
							<a href="${base}/template/custom">
								<i class="fa fa-lg fa-fw fa-file-text-o"></i> 自定义模板管理
							</a>
						</li>
					</ul>
				</li>
				<li class="${fn:contains(uri, '/param/') ? 'active' : ''}">
					<a href="${base}/param/param"> 
						<i class="fa fa-lg fa-fw fa-home"></i>
						<span class="menu-item-parent">基本信息</span>
					</a>
				</li>
				<li class="${fn:contains(uri, '/user/') ? 'active' : ''}">
					<a href="${base}/user/list"> 
						<i class="fa fa-lg fa-fw fa-group"></i>
						<span class="menu-item-parent">用户管理</span>
					</a>
				</li>
			</ul>
		</nav>
		<span class="minifyme" data-action="minifyMenu"> <i
			class="fa fa-arrow-circle-left hit"></i>
		</span>
	</c:if>
	<c:if test="${roleId==1}">
		<nav>
			<ul>
				<li class="${fn:contains(uri, '/backmenu/') ? 'active open' : ''}">
					<a href="#"><i class="fa fa-lg fa-fw fa-sitemap"></i> <span
						class="menu-item-parent">导航菜单</span></a>
					<ul style="${fn:contains(uri, '/backmenu/') ? 'display: block;' : ''}">
						<li class="${fn:contains(uri, '/backmenu/list') ? 'active' : ''}">
							<a href="${base}/backmenu/list">
								<span class="menu-item-parent">导航列表</span>
							</a>
						</li>
						<li class="${fn:contains(uri, '/backmenu/add') ? 'active' : ''}">
							<a href="${base}/backmenu/add">
								<span class="menu-item-parent">添加导航</span>
							</a>
						</li>
					</ul>
				</li>
				<li class="${fn:contains(uri, '/column/') ? 'active' : ''}">
					<a href="${base}/column/list">
						<i class="fa fa-lg fa-fw fa-copy"></i>
						<span class="menu-item-parent">内容管理</span>
					</a>
				</li>
			</ul>
		</nav>
		<span class="minifyme" data-action="minifyMenu"> <i
			class="fa fa-arrow-circle-left hit"></i>
		</span>
	</c:if>
</aside>